package com.paw.trace.sleuth.controller;

import com.paw.trace.sleuth.feign.SleuthBFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lvzihai
 * @date: 2021/5/28
 **/
@Slf4j
@RestController
public class SleuthController {

  @Autowired
  private SleuthBFeignClient sleuthBFeignClient;

  @GetMapping("/sleuth")
  public String sleuth(){
    log.info("==== sleuth");
    String sleuthB = sleuthBFeignClient.sleuthB();
    log.info(sleuthB);
    return "sleuth";
  }

}
